import request from '@/utils/request'

// 充值钱包
export const addPurse = params => {
  return request({
    method: 'POST',
    url: '/records/add',
    params
  })
}

// 获取当前用户的充值记录
export const getRecord = id => {
  return request({
    method: 'GET',
    url: `/records/page/${id}`
  })
}
